#include "component/ColliderSphere.h"
#include "GameObject.h"
#include "Vector3.h"

using namespace Boon;

GameObject::RegisterCreationCB<ColliderSphere> cs;


Boon::Bounds Boon::ColliderSphere::GetBounds() const
{
	return Bounds( GetGameObject().GetTransform().GetPosition(), Vector3::ONE * m_Radius * 2.0f );
}

ColliderType Boon::ColliderSphere::GetType() const
{
	return CT_SPHERE;
}

void Boon::ColliderSphere::OnCreate()
{
	m_Radius = .5f;
	Collider::OnCreate();
}
